﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace WpfApp.UserControls
{
    /// <summary>
    /// Interaction logic for Batches.xaml
    /// </summary>
    public partial class Batches : UserControl
    {
        public Batches()
        {
            InitializeComponent();
            EditDateOfManufacture.EditValue = System.DateTime.Today;
            EditProductName.ItemsSource = new dbQPDataSetTableAdapters.ProductsTableAdapter().GetData();
            EditTypeOfPackaging.ItemsSource = new dbQPDataSetTableAdapters.PackagingTableAdapter().GetData();
            EditUnit.ItemsSource = new dbQPDataSetTableAdapters.UnitTableAdapter().GetData();
            using (dbQPDataSetTableAdapters.EmployeesTableAdapter employeesTableAdapter = new dbQPDataSetTableAdapters.EmployeesTableAdapter())
            {
                EditForeman.ItemsSource = employeesTableAdapter.GetData();
                EditAnalyst.ItemsSource = employeesTableAdapter.GetData();
            }
        }
    }
}
